package edu.sctu.practice.class01.xiangkun.assign21;

/**
 * Created by xiangkun on 2015/11/12.
 */
public class InterfaceDemo {

    public static void main(String[] args) {

        Bike bike = new Bike();
        System.out.println(bike.start("自行车1:00开始出发！"));
        System.out.println(bike.stop("自行车20分钟后停止！"));

        Bus bus = new Bus();
        System.out.println(bus.start("公交车2:00开始出发！"));
        System.out.println(bus.stop("公交车30分钟后停止！"));

    }

}
